<template>
	<view>
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">入库</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/inBound/inBound')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">入库作业</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/backInBound/backInBound')">
						<text class="iconfont">&#xe6fd;</text>
						<text class="btn-text">退料入库</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/preAllocated/preAllocated')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">预分配容器</text>
					</u-grid-item>
				</u-grid>
			</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/callCar/callCar')">
						<text class="iconfont">&#xe6fe;</text>
						<text class="btn-text">扫码叫车</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inBound/maxboxinbound')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">容器物料</br>入库提示</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inBound/emergency')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">紧急发料作业</text>
					</u-grid-item>
				</u-grid>
			</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/storageBinding/storageBinding')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">储位绑定</br>与解绑</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inBound/materialBinding')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">物料绑定</br>与解绑</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inBound/inBoundException')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">入库异常原因</text>
					</u-grid-item>
				</u-grid>
			</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/inBound/vmInventory')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">入虚拟仓</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inBound/callEmpty')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">呼叫空容器</text>
					</u-grid-item>
				</u-grid>
			</view>
		</view>
		<Gap />
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">在库</view>
			<u-grid col="3">
				<u-grid-item @click="navigateTo('/pages/work/check/check')">
					<text class="iconfont">&#xe701;</text>
					<text class="btn-text">盘点作业</text>
				</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/move/move')">
					<text class="iconfont">&#xe6fe;</text>
					<text class="btn-text">移库作业</text>
				</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/materialQuery/materialQuery')">
					<text class="iconfont">&#xe6ff;</text>
					<text class="btn-text">物料查询</text>
				</u-grid-item>
			</u-grid>
		</view>
		<Gap />
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">出库</view>
			<u-grid col="3">
					<u-grid-item @click="navigateTo('/pages/work/sort/matboxSort')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">料箱分拣</text>
					</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/sort/notMatboxSort')">
					<text class="iconfont">&#xe702;</text>
					<text class="btn-text">托盘分拣</text>
				</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/sort/backSort')">
					<text class="iconfont">&#xe702;</text>
					<text class="btn-text">退库分拣</text>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="mobile-item-container">
			<u-grid col="3">
				<u-grid-item @click="navigateTo('/pages/work/sort/filledBox')">
					<text class="iconfont">&#xe702;</text>
					<text class="btn-text">满箱</text>
				</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/manualLabor/manualLabor')">

						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">人工搬运出库</text>
					</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/sort/conveyerBeltSort')">
					<text class="iconfont">&#xe702;</text>
					<text class="btn-text">皮带线分拣</text>
				</u-grid-item>
			</u-grid>
		</view>
		<view class="mobile-item-container">
			<u-grid col="3">
				<u-grid-item @click="navigateTo('/pages/work/sort/lineSideStorageSort')">
					<text class="iconfont">&#xe702;</text>
					<text class="btn-text">线边仓出库分拣</text>
				</u-grid-item>
			</u-grid>
		</view>
		<Gap />
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">其他</view>
			<u-grid col="3" style="align-items: start;">
				<u-grid-item @click="navigateTo('/pages/work/tempStorageSecond/tempStorageSecond')">
					<text class="iconfont">&#xe6fc;</text>
					<text class="btn-text">产线间物料调</br>拨/去暂存区</text>
				</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/productionReturn/productionReturn')">
					<text class="iconfont">&#xe6fe;</text>
					<text class="btn-text">产线退料</text>
				</u-grid-item>
				<u-grid-item @click="navigateTo('/pages/work/portChange/portChange')">
					<text class="iconfont">&#xe6fc;</text>
					<text class="btn-text">Port切换</text>
				</u-grid-item>
			</u-grid>
		</view>
		<scan-code></scan-code>
	</view>
</template>

<script>
	import Gap from '@/components/gap/Gap'
	import scanCode from "@/components/scanCode/scan-code.vue"

	export default {
		components: {
			Gap,
			scanCode
		},
		data() {
			return {
			}
		},
		onShow: function() {
			// var _this = this
			// uni.$off('scancodedate') // 每次进来先 移除全局自定义事件监听器  
			// uni.$on('scancodedate', function(data) {
			// 	console.log('你想要的code：', data.code)
			// })
		},
		methods: {
			navigateTo(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style>
	@import '@/common/icon/iconfont.css'
</style>